how to save byte[] value to varbinary(64) field on database

Posted by shamim on Stack Overflow See other posts from Stack Overflow or by shamim
Published on 2010-06-07T18:19:57Z Indexed on 2010/06/07 18:22 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

byte[] a = HashEncript("a");

public byte[] HashEncript(string Password)
        {
            SHA512Managed sha = new SHA512Managed();
            byte[] hash = sha.ComputeHash(UnicodeEncoding.Unicode.GetBytes(Password));
            return hash;
        }

i want to save byte[] a this value on my database .My database field is varbinary(64).i use msSQL2008 .how to save ,want to know the insert query with C# code.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET